import { request } from '@/utils/request'

/**
 * 升级套餐列表接口
 */
export const upgradePackageList = () => request('FcMemberSendGift/upgradePackageList')

/**
 * 升级套餐 的商品列表
 * @param id 升级套餐的ID。就是上面接口会返回的ID
 */
export const upgradePackageInfo = id => request('FcMemberSendGift/upgradePackageInfo', { id })

/**
 * 获取分享链接的时间戳
 */
export const enjoyLink = () => request('Fcmembersendgift/enjoyLink')

/**
 * 获取分享者信息
 * @param {*} shareId 分享者ID
 * @param {*} page 礼物页码
 */
export const giftLists = (shareId, shareCode, page) =>
  request('index/giftLifts', { shareId, shareCode, page })

/**
 * 获取分享的礼物列表
 */
export const giftGoodsList = page => request('index/giftGoodsList', { page })

/**
 * 套餐管理接口
 */
export const packageControl = page => request('Fcmembersendgift/packageControl', { page })
